package com.recruit.common.observer.user;

import com.recruit.common.observer.Observer;
import com.recruit.common.util.SingleUtil;
import lombok.Data;

/**
 * @Author by DHF
 * @Date 2023/02/2023/2/5 12:52
 * @Version 1.0
 */

/**
 * 观察者子类——limaoqing用户
 */
@Data
public class limaoqing extends Observer {

    /**
     * 观察者名字
     */
    private String name = "limaoqing";

    @Override
    public void update() {
        // 根据message和name存一条记录到全局map中：messageMap
        SingleUtil.messageMap.put(name, message);
    }
}
